package com.example.dubbolearnning.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * 
 * <Description> <br> 
 *  
 * @author panlong189 <br>
 * @version 1.0 <br>
 * @taskId <br>
 * @CreateDate 2018年5月21日 <br>
 * @since 1.0 <br>
 * @see com.example.dubbolearnning.consumer <br>
 */
@SpringBootApplication(scanBasePackages = "com.example.dubbolearnning.consumer.controller")
public class DubboConsumerDemo {
    public static void main(String[] args) {
        SpringApplication.run(DubboConsumerDemo.class, args);
    }
    
    @Bean
    RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
